﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using DataAccess;

namespace Black_Jack_Basic_Strategy
{
    class HandEvaluator
    {
        private Player Dealer { get; set; }
        private Player Player { get; set; }

        public enum HandAction
        { 
            ShouldHit = 1,
            ShouldDouble = 2,
            ShouldSplit = 3,
            ShouldStay = 4
        }

        public HandEvaluator(Player aDealer, Player aPlayer)
        {
            this.Dealer = aDealer;
            this.Player = aPlayer;
        }

        public bool IsToughHand()
        {
            String sPlayersHandDBValue = Player.GetPlayerHandDBValue();
            String sDealersUpCard = Dealer.GetDealerHandDBValue();
            FlashCards fc = new FlashCards();
            return fc.IsToughHand(sDealersUpCard, sPlayersHandDBValue);
        }

        public HandAction ProperBasicAction()
        {
            //This should be in the database
            return HandAction.ShouldStay;
   
        }
    }
}
